
<template>
  <div>
    <el-dialog v-bind="$attrs">
      {{ $slots }}
      <template v-for="item in Object.keys(slots)" :key="item" v-slot:[item]>
        <slot :name="item"></slot>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
import { useSlots } from "vue";
const slots = useSlots();
console.log(slots);

</script>

<style scoped>

</style>